home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / gt1300_1.arc / GTHOST.DOC < prev    next >
Text File  |  1987-09-27  |  89KB  |  2,045 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                 GT POWER - 13.00
  16.                  Copyright (c) 1985-1987: by P & M Software Co.
  17.              All rights, not expressly granted herein, are reserved.
  18.  
  19.  
  20.  
  21.                              Host Mode Documentation
  22.  
  23.  
  24.                                September 25, 1987
  25.  
  26.  
  27.  
  28.                              P & M Software Company
  29.                              9350 Country Creek #30
  30.                              Houston, Texas   77036
  31.  
  32.  
  33.  
  34.  
  35.                                 Table of Contents
  36.                     -----------------------------------------
  37.      Brief Summary . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  38.      Installation of Host Mode . . . . . . . . . . . . . . . . . . . . .   5
  39.           The "Modem Init String"  . . . . . . . . . . . . . . . . . . .   5
  40.           The "Host Mode: Modem Init String" . . . . . . . . . . . . . .   5
  41.           The "Modem Answer String"  . . . . . . . . . . . . . . . . . .   5
  42.           The "Result Codes" . . . . . . . . . . . . . . . . . . . . . .   6
  43.           Logging  . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  44.           Hang-up during host mode . . . . . . . . . . . . . . . . . . .   6
  45.           The "Message base PATH"  . . . . . . . . . . . . . . . . . . .   6
  46.           Where the host mode receives files . . . . . . . . . . . . . .   7
  47.      Security Considerations . . . . . . . . . . . . . . . . . . . . . .   8
  48.           DSZ.EXE  . . . . . . . . . . . . . . . . . . . . . . . . . . .   9
  49.           PCKERMIT.EXE . . . . . . . . . . . . . . . . . . . . . . . . .   9
  50.      Host Mode Text Files  . . . . . . . . . . . . . . . . . . . . . . .  12
  51.           Disable the "More?" prompt . . . . . . . . . . . . . . . . . .  12
  52.           Disable ^K/^C break  . . . . . . . . . . . . . . . . . . . . .  12
  53.           ANSI graphics  . . . . . . . . . . . . . . . . . . . . . . . .  12
  54.           GTSYSID.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  12
  55.           GTWELCOM.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  12
  56.           GTPASSWD.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  12
  57.           GTBULLET.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  15
  58.           BULLETx.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  15
  59.           GTMENU.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  60.           GTHELP.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  61.           GTBYE.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  62.           GTUSER.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  63.           GTDIR.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  64.           GTDDIR.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  65.           GTMDIR.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  66.           GTDOORS.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  20
  67.           GTDOORn.BAT  . . . . . . . . . . . . . . . . . . . . . . . . .  20
  68.           ANSWER.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  69.           QUESTION.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  21
  70.           PREQUEST.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  21
  71.           PROTOCOL.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  22
  72.           WELCOME.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  22
  73.           MBULLETx.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  22
  74.           SYSOP.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  75.           SCHEDULE.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  23
  76.           FILES.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  77.      Host Mode Control Files and Directories . . . . . . . . . . . . . .  25
  78.      Running Host Mode . . . . . . . . . . . . . . . . . . . . . . . . .  26
  79.           SYSOP COMMANDS . . . . . . . . . . . . . . . . . . . . . . . .  26
  80.           Command Line Usage . . . . . . . . . . . . . . . . . . . . . .  26
  81.      Host Mode LOG . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
  82.      The Shell to DOS  . . . . . . . . . . . . . . . . . . . . . . . . .  29
  83.           COMMAND.COM  . . . . . . . . . . . . . . . . . . . . . . . . .  29
  84.           DOS 2.xx . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  85.      Using the Shell to DOS  . . . . . . . . . . . . . . . . . . . . . .  30
  86.      APPENDIX  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  31
  87.           Extended ASCII codes . . . . . . . . . . . . . . . . . . . . .  31
  88.           Sample ANSI sequences  . . . . . . . . . . . . . . . . . . . .  31
  89.           POWER-LOSS-PROTECTED HOST MODE . . . . . . . . . . . . . . . .  32
  90.           GT under DESQview(tm)  . . . . . . . . . . . . . . . . . . . .  34
  91.  
  92. (tm) DESQview is the trademark of QuarterDeck Office Systems.
  93.  
  94.  
  95.  
  96.      Brief Summary
  97.      -------------
  98.      The host  mode provided  within GT POWER allows you to run an unattended
  99.      session with your system.  That is, if you expect to receive  calls from
  100.      other computer  systems (say  from clients or a set of authorized remote
  101.      users) then you can tell GT  POWER that  it should  automatically answer
  102.      the telephone  for you, verify the caller's credentials, and if found to
  103.      be valid, to provide  that user  with a  menu of  functions that  can be
  104.      performed.  All of that, of course, without further intervention on your
  105.      part.
  106.  
  107.      GT POWER's host mode facilities are so much like a  traditional BBS that
  108.      several  users,  including  the  authors  of  GT POWER and its companion
  109.      programs (GTLOG, GTCTL and  GTDIR), have  adopted its  use on  a 24 hour
  110.      basis in lieu of any other BBS system.
  111.  
  112.      Security  is  of  paramount  importance  when  running  in host mode for
  113.      obvious  reasons.    Please   read   the   section   entitled  'Security
  114.      Considerations' before attempting to operate this system.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.                                         4
  154.  
  155.  
  156.  
  157.      Installation of Host Mode
  158.      -------------------------
  159.      The most  important thing  about host mode is proper installation of the
  160.      modem control strings and result codes.   These  strings and  codes must
  161.      not just  control the  modem, they  MUST WORK TOGETHER.  For example, if
  162.      the modem init strings specify "verbose"  result codes,  then the result
  163.      code table better have the "verbose" codes in it, not the "terse" codes.
  164.      There are 8 specific areas that must be installed; all  of these options
  165.      and strings are accessible via the ALT-I command.  Let's discuss each of
  166.      these items in turn:
  167.  
  168.      1.   The "Modem Init String".  The default value is:
  169.  
  170.                            AT V1 Q0 E0 X1 S0=0 S2=43|
  171.  
  172.           Assuming that one wants to use the default string, there  is really
  173.           only one  thing that  one SHOULD  DO to  this string: change the Xn
  174.           command.  The most powerful Xn command available  on your  modem is
  175.           the  one  to  choose.    With  a USRobotics Courier 2400 modem, use
  176.           either X5 or X6.  With a normal  Hayes-compatible 1200  baud modem,
  177.           use X1.   X4  would be  normal for  most Hayes-compatible 2400 baud
  178.           modems.  For other modems consult the modem manual.
  179.  
  180.           NOTE:
  181.                Many so  called  "Hayes-compatibles"  are  compatible  in name
  182.                only.   We get  many calls  for support  from individuals with
  183.                non-Hayes modems.  Please  read  your  modem  manual carefully
  184.                because it is very hard to support all the different modems.
  185.  
  186.      2.   The "Host  Mode: Modem  Init String".   This  string is found under
  187.           item #32 of the configuration screen.  The default value is:
  188.  
  189.                            AT V1 Q0 E0 M0 X1 S0=1 S2=255|
  190.  
  191.           There are several things one could do to  this string.   First, one
  192.           must modify  the X1  command to  match the value added to the Modem
  193.           Init String above.  Secondly, if  one  desires  the  speaker  to be
  194.           heard during  host mode,  remove the  M0 from the string.  Thirdly,
  195.           the S0=1 may be changed to  S0=0,  THIS  IS  THE  ONLY  OTHER VALID
  196.           VALUE!   If S0=0  is used, the modem will not answer automatically,
  197.           GT will count the rings and command the  modem to  answer after the
  198.           2nd ring  (or if the /Rn command line switch is used, after the Nth
  199.           ring).  This is why S0=1 and S0=0 are the  only permissible values!
  200.           Refer to  the main GT1300.DOC file for a complete discussion of the
  201.           available command line switches.
  202.  
  203.      3.   The "Modem Answer String".  This  string is  located with  the Host
  204.           Modem Init  String under item #32 of the configuration screen.  The
  205.           default value is:
  206.  
  207.                            ATA|
  208.  
  209.           GT will issue this string to  the  modem  whenever  the  ring count
  210.           reaches 2 (or the number indicated by the /Rn switch).  This string
  211.           should not be changed, unless GT  should not  be allowed  to answer
  212.           the modem.   For example, one could erase this string and set S0=5,
  213.  
  214.                                            5
  215.  
  216.  
  217.  
  218.           so that the modem would answer on the 5th ring, but I  don't advise
  219.           anyone do this.
  220.  
  221.      4.   The "Result  Codes".   Because the modem init strings above contain
  222.           V1, "verbose" result codes should be programmed.  They can be found
  223.           under item  #31 of the configuration screen.  There are 16 possible
  224.           results.  If the modem does not support all of  these, simply leave
  225.           the extra  strings in  their default state.  The program comes with
  226.           the default result codes set for use with a USRobotics  Courier HST
  227.           modem.   Please consult  the manual for the modem in use and modify
  228.           this table to match.  Remember, use the "verbose" (word codes), not
  229.           the "terse"  codes.   It IS  POSSIBLE to use the "terse" codes, but
  230.           they are not as compatible with such services as PC Pursuit.  It is
  231.           especially important  that the result codes for the CONNECT results
  232.           are correct.  GT uses these  to  determine  the  baud  rate  of the
  233.           incoming call.  If they are wrong, then GT will not be able to talk
  234.           to the incoming caller, because the modem and GT will not be at the
  235.           same baud rate; they will be out-of-sync.
  236.  
  237.      5.   It is  highly recommended  that logging  be TRUE  during host mode.
  238.           Otherwise,  all  records  of  the  host  mode  activities  will  be
  239.           discarded.
  240.  
  241.      6.   How to  allow GT  to hang-up  during host  mode.  Since the "escape
  242.           code" must be disabled during host mode, otherwise  some caller may
  243.           crash your  system, the normal hang-up string, "~+++~ATH", will not
  244.           work!  Therefore, GT cannot hang-up the modem,  unless you  set the
  245.           modem to  normal DTR operation.  During host mode, GT will drop the
  246.           DTR signal whenever he  wants the  modem to  hang-up.   Most modems
  247.           come from  the factory set so that they ignore the DTR signal - you
  248.           must reset a switch or, in the case  of the  Hayes 2400  modem, you
  249.           must make  an entry  in the  Modem init  string to do this.  In any
  250.           case, if the modem  ignores DTR,  it will  not hang  up during host
  251.           mode  operations.    Some  modems  which must be setup via the init
  252.           strings to handle  DTR  properly  use  either  &D2  or  &D3, please
  253.           consult the  manual for  the modem  in use to determine the correct
  254.           setting.
  255.  
  256.      7.   How does GT determine when a  connection  is  lost?    The  GT host
  257.           monitors the carrier detect signal from the modem, when this signal
  258.           goes low, then GT assumes that the connection has been  lost.  Most
  259.           modems come  from the  manufacturer with  the carrier detect signal
  260.           forced high.  "This  is like  having a  telephone with  no ringer."
  261.           Quote  by  Tom  Jennings.    Obviously, this must be changed.  Some
  262.           modems have a switch that must  be reset  to enable  a true carrier
  263.           detect,  others  require  setup  via  the init string.  Many of the
  264.           modems that require init string setup  use &C1,  please consult the
  265.           manual for the modem in use to determine the correct setting.
  266.  
  267.      8.   Another option  available under  the Alt-I,  #32, the miscellaneous
  268.           options section, is the "Message base PATH".  This option  is to be
  269.           used to  indicate to  GT where  the main or default message base is
  270.           located.  This is the message base that the user  will be initially
  271.           given access  to upon  calling the  system.  This should be an open
  272.           message base since all callers to  the system  that pass  the logon
  273.           procedure will have access to this area.
  274.  
  275.                                            6
  276.  
  277.  
  278.  
  279.  
  280.      9.   To designate  the directory where the host mode receives files, you
  281.           should  specify  the  DOWNLOAD  directory  path.    This  option is
  282.           specified under Alt-I, #32, the miscellaneous options section.  The
  283.           user may be confused by the terminology here, so let me stress that
  284.           the DOWNLOAD  directory is where GT POWER *receives* files, whether
  285.           in host or terminal modes.  Further, the UPLOAD directory path only
  286.           pertains  to  Terminal  Mode,  as  the  host  mode  file  areas are
  287.           otherwise controlled via entries  in the  GTDIR.BBS file, described
  288.           below.
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.                                            7
  337.  
  338.  
  339.  
  340.      Security Considerations
  341.      -----------------------
  342.      Many of GT POWER's design considerations were directed towards providing
  343.      absolute system integrity while in host mode.  This section  is designed
  344.      to highlight  some of  those considerations with the intention of making
  345.      the System operator of a host  mode fully  aware of  both his protection
  346.      and his responsibilities in that regard.
  347.  
  348.      The  fundamental  truth  about  security  is that essentially it is YOUR
  349.      responsibility.  GT POWER's first line of defense in your  behalf is its
  350.      password  function.    Without  a  preassigned password, a remote caller
  351.      cannot gain  access to  the functions  provided by  GT POWER!   Thus, it
  352.      stands  to  reason  that  your  first  responsibility is to assign those
  353.      passwords and  TO  GUARD  THEM.    Because  there  are  several  sets of
  354.      facilities that  you will  wish to control and to allow various users to
  355.      be provided selectively, GT  provides several  'levels' of authorization
  356.      that may  be assigned  to each password.  In this way, all users who log
  357.      on with the same password will have identical  (and only  those that are
  358.      assigned) access  to GT  facilities.   For example, GT POWER provides to
  359.      users who have a sufficiently high 'level' of authorization, the ability
  360.      to shell into DOS and, thus, have the ability to execute ANY DOS COMMAND
  361.      from  their  remote  location!    Obviously,  you  would   not  casually
  362.      distribute that password amongst your user community.  Most users should
  363.      NEVER be allowed to Shell to your DOS!  (While in DOS a user  could, for
  364.      example, format  your hard  disk -  that would, of course, result in the
  365.      end of subsequent functionality of the entire system).   To  these users
  366.      you  would  assign  a  lower  'level'  of authority.  To do so you would
  367.      simply change their  access  level  to  the  new  level  with  the GTCTL
  368.      program.
  369.  
  370.      One of the nicest features of the host mode provided by GT POWER are its
  371.      message data bases.  With this feature the users of the system may leave
  372.      'mail' for  other users  and receive mail for themselves.  Indeed, there
  373.      are two kinds of mail: Public and Private.  Public  mail may  be read by
  374.      any user  of the  system.   Private mail, on the other hand, may be read
  375.      only by the person sending it or  by  the  recipient.    Here,  then, is
  376.      another area  of security that you need to be aware of and control.  For
  377.      example, say that you allow your system to be called by clients  of your
  378.      firm  and  that  they  are  encouraged  to leave messages to you in your
  379.      absence.  It is possible that several of your clients are competitors of
  380.      each other.   Thus,  it would be improper to allow them to read messages
  381.      sent by others.  This is the reason for Private mail.  At this  point, I
  382.      would like  to point  out that  there is no such thing as 'Private' from
  383.      the Sysop!  That is, the System operator  may read  any message, whether
  384.      addressed to  him or  not and  whether they  are marked  Private or not.
  385.      Finally, lest  the earlier  remarks did  not sink  in, any  user who has
  386.      access  to  the  DOS  via  the  Shell  command  (because of his assigned
  387.      extremely high 'level' of  authorization) can  easily read  any messages
  388.      while he is in the DOS Shell!
  389.  
  390.      As far  as sending PRIVATE messages to the System operator is concerned,
  391.      any user may do that!  There is  an 'M'  command on  the Main  Menu that
  392.      results in  messages that  only the  Sysop may view.  These messages are
  393.      automatically addressed to the Sysop and  marked as  private.   They are
  394.      placed in  the current  message base  the user is accessing, they may be
  395.      read only by someone with the Sysop authorization level.
  396.  
  397.                                         8
  398.  
  399.  
  400.  
  401.  
  402.      The hierarchy of access 'levels' based on password enables the  Sysop to
  403.      control which  directories on  the disk  those users  have access to for
  404.      purposes of downloading files.   It  is  STRONGLY  urged  that  the user
  405.      create a  batch file that is used to invoke GT POWER.  Within this batch
  406.      file the Sysop should set a default directory before the  actual call to
  407.      GT.   The reason for this is somewhat subtle.  When a user logs into the
  408.      host mode he will be connected to the  default drive  and directory that
  409.      was in  existence at  the time GT POWER was invoked.  If, by chance, the
  410.      system had been in a sensitive area of the disk  at that  time, then the
  411.      user (assuming he is allowed to Download and Upload files - based on his
  412.      authorization level) will be able to obtain any  of those  files EVEN IF
  413.      THAT PARTICULAR  DIRECTORY HAS  NOT BEEN SPECIFICALLY AUTHORIZED TO HIM!
  414.      Setting a default directory to that one which is the  least sensitive on
  415.      the system  (perhaps even  one that  has NO FILES IN IT) will insure the
  416.      integrity of your sensitive  files.    For  example, the  following is a
  417.      reasonable batch file for this purpose:
  418.  
  419.                C:                    To specify a default drive of C
  420.                set GTPATH=C:\GT      Remember to set GTPATH!
  421.                CD \EMPTY             To specify a default directory
  422.                GT1300                To invoke GT POWER
  423.  
  424.      If the  above batch  file were called GT.BAT and placed in your system's
  425.      PATH then  you could  safely invoke  GT by  simply typing:  GT.    It is
  426.      important to  note, that one of the most frequent errors reported to the
  427.      GT support staff is the incorrect setting of GTPATH.   When this happens
  428.      the  usual  symptom  is  a  "Run-Time Error F0..." immediately after the
  429.      program starts.
  430.  
  431.      As you  will see  when you  read the  next section  (about the GTDIR.BBS
  432.      file), you  can allow  your users to have access to all directories that
  433.      have a matching authorization level OR LOWER.  Further, you  can specify
  434.      that particular directories are only available to specific authorization
  435.      levels.
  436.  
  437.      Where is  all this  authorization level  information kept  within the GT
  438.      POWER  system?    In  a  file  called  GTPASSWD.BBS.    That file, it is
  439.      unnecessary to say, is the key to the security of  your system.   One of
  440.      the subtle  security features of GT POWER is that it will not allow that
  441.      file, even if it  is contained  in a  directory that  the user  has been
  442.      authorized to Download from, to be transmitted over the telephone!
  443.  
  444.      NOTE:
  445.           That the  external protocols  can transfer prohibited files and for
  446.           this reason, extreme care should be taken when using either DSZ.EXE
  447.           or PCKERMIT.EXE.
  448.  
  449.      Similarly,  because  the  Log  file  that is optionally maintained by GT
  450.      contains the user names and passwords of those who have  logged onto the
  451.      system, it may not be transmitted over the telephone either.
  452.  
  453.      When  running  in  host  mode  the  screen  on the host system shows all
  454.      keystrokes entered by the  remote user  (except while  he is  in the DOS
  455.      Shell or  using a DOOR, should that be allowed).  In other words, if the
  456.      remote user, for example, entered a Private message to another  user, or
  457.  
  458.                                         9
  459.  
  460.  
  461.  
  462.      to the Sysop, the text is showing on the host screen as it is typed.  If
  463.      the user were to log off immediately after entering the  message then it
  464.      would be  possible that the text of the message remained on the  screen.
  465.      GT POWER erases the screen after the caller hangs up  to prevent  such a
  466.      lapse in security.
  467.  
  468.      If you  are running  a host  mode system  in an environment where others
  469.      might be able to observe the screen then it is recommended that you turn
  470.      your monitor off while you are not in attendance.
  471.  
  472.      If others  may be  in the  area as you are communicating (chatting) with
  473.      users and you wish to control the information on the screen you would do
  474.      well  to  remember  that  the  Alt-W  keystroke  will  erase your screen
  475.      instantly.
  476.  
  477.      A user-name may be  BANned from  accessing the  system.   Note, however,
  478.      that doing  so merely  encourages an  undesirable to log on with another
  479.      user name (since he already has a valid password).  Of course,  with the
  480.      advent of  personalized passwords,  this provision has a great deal more
  481.      teeth, since one could setup the  system password  to have  a low access
  482.      level, which would be raised only after validation.
  483.  
  484.      Computer time  is a  resource that  you can  also control  in host mode.
  485.      Each password may have a designated time limit  beyond which  the caller
  486.      will be  automatically logged  off.  The number of calls per day made to
  487.      your system by an individual caller is also subject to control.
  488.  
  489.      One of the more subtle security measures built into the host mode  of GT
  490.      POWER is  called a  'Watchdog'.  Should an authorized user be in the DOS
  491.      Shell or out a  DOOR, and  for any  reason he  were to  drop his carrier
  492.      (hang-up), the  system would  then be  vulnerable to  the next caller as
  493.      that caller could  find  the  system  is  DOS  and  he  would  then have
  494.      uncontrolled  access  to  do  as  he  pleased  to  your  system.  In the
  495.      situation mentioned, loss of  carrier,  GT  will  force  your  system to
  496.      reboot and  if you setup the AUTOEXEC.BAT file properly, when the system
  497.      completes rebooting it will invoke GT and put it back in host mode!  The
  498.      same thing  would happen,  for example,  if power were to be lost during
  499.      host mode.  When power is restored the system will  automatically return
  500.      to the  host mode  of GT  POWER.   Note, however, that for those systems
  501.      that do not have a built in clock, the time and date of the system would
  502.      no longer be correct.
  503.  
  504.      As a  Sysop of  a host  mode GT  system you must be aware that there are
  505.      some legal considerations that you may  face.   For example,  should you
  506.      allow users  to place  copyrighted programs onto your system and to then
  507.      allow  other  users  to  download  those  same  programs,  then  you are
  508.      participating  in  an  illegal  activity!   Naturally there is no way to
  509.      prevent a user from  sending you  copyrighted material,  provided he has
  510.      upload capability.   There  are many things that you can do, however, to
  511.      stop others from having access to that material.  For  example, GT POWER
  512.      allows you  to cause  all files  that are  uploaded to your system to be
  513.      placed into a special directory rather than into the directory  the user
  514.      is  currently  using.    It  makes  good  sense  to  make that receiving
  515.      directory PRIVATE in the sense that it is NOT listed as available in the
  516.      GTDIR.BBS to  your remote  users.  In this way, you may review the files
  517.      received at your convenience and move them over to public directories if
  518.  
  519.                                        10
  520.  
  521.  
  522.  
  523.      you  are  satisfied  that  they  are  either  public domain or Shareware
  524.      programs and files.
  525.  
  526.      Another reason that you will want to do  the above  is that  there are a
  527.      few people  out in  the world  that like  to send what are called Trojan
  528.      Horses to BBS's.  A Trojan Horse is a program  that causes  some form of
  529.      damage when  it is  run.   It would  not be at all fair to your users to
  530.      expose them to such programs.  So, when  it is  safe for  you to  do so,
  531.      either run the programs you receive (using BOMBSQAD or a similar program
  532.      to prevent a problem for you).  When you are satisfied that the programs
  533.      received are safe then you can move them to public areas.
  534.  
  535.      And in the event that a user does send you a Trojan Horse or copyrighted
  536.      code, it is in your best interest to know who did so.  GT POWER provides
  537.      an optional  log file  function.   If that  is enabled,  which is highly
  538.      recommended, then the log contains the name of the person  who logged on
  539.      and sent you the file.  Use GTLOG to extract the information.
  540.  
  541.      This section  of the  document is substantially larger than you may have
  542.      expected it to be.  The reason should now be obvious.
  543.  
  544.      We remind you again, YOU are the person responsible for security.  It is
  545.      necessary that  you know  the previous  information and take appropriate
  546.      actions.
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.                                        11
  581.  
  582.  
  583.  
  584.      Host Mode Text Files
  585.      --------------------
  586.      The following text files  must  be  created  and/or  maintained  with an
  587.      editor that can produce plain ASCII files.  Any of the display type .BBS
  588.      files may have a DC2, Ctrl-R, character inserted into column 1 of line 1
  589.      to disable  the "More?"  prompt during  display of  the file, and a DC4,
  590.      Ctrl-T, character inserted into column 1 of line 1 to disable the Ctrl-K
  591.      and/or Ctrl-C user break.
  592.  
  593.      +---------------------------------------------------------------------+
  594.      |                                                                     |
  595.      |     Ctrl-R ... DC2 ... Disable "More?" during file display.         |
  596.      |     Ctrl-T ... DC4 ... Disable ^K/^C break during file display.     |
  597.      |                                                                     |
  598.      +---------------------------------------------------------------------+
  599.  
  600.      This  is  useful  when  the  file  contains  such  graphic or annimation
  601.      techniques that would be spoiled by such interruption.   Except  for the
  602.      GT?DIR.BBS files,  every .BBS  file can  have two  versions: (a) a color
  603.      graphics version or (b) a plain text version.  This  is coordinated with
  604.      the  ANSI  graphics  question  asked  of  callers  before they logon the
  605.      system.  The .BBS extension is the default used if  only one  version of
  606.      the file  can be  found by GT, the .CBS extension is used to indicate to
  607.      GT  that  a  graphics  version  is  available.    If  both  versions are
  608.      available, the .CBS version will be shown to callers who elect graphics,
  609.      if graphics  are not  elected by  the caller,  the .BBS  version will be
  610.      displayed.
  611.  
  612.  
  613.      GTSYSID.BBS     This file  is displayed as soon as the GT host detects a
  614.                      connection has been established  with an  incoming call.
  615.                      After displaying  this file, GT will ask the user if the
  616.                      terminal program he is using supports ANSI graphics.
  617.  
  618.      GTWELCOM.BBS    This file  is displayed  to a  caller just  before he is
  619.                      asked for  his name  by the GT host.  It should identify
  620.                      the system to callers.
  621.  
  622.      GTPASSWD.BBS    This file  contains  the list  of passwords  that people
  623.                      must know  to access  the system.   The  entries in this
  624.                      file are composed of one  line  per  password,  and each
  625.                      line  contains  the  following information, beginning in
  626.                      column 1:
  627.  
  628.      Lvl  ([xx:xx(,n,hh:mm)])  Pwd  Auth  (1st-Name Last-Name Phone-Number)
  629.  
  630.                      These items can have a variable number of blanks between
  631.                      them,  but  the  "Lvl"  must  begin  in  column 1.  EACH
  632.                      PASSWORD MUST BE  UNIQUE  and  from  1-20  characters in
  633.                      length.
  634.  
  635.                      The () which have been shown around the call time limit,
  636.                      the daily call limit,  the daily  time limit,  the name,
  637.                      and phone  number fields,  indicate that these items are
  638.                      optional and need not be included in the file.
  639.  
  640.  
  641.                                                12
  642.  
  643.  
  644.  
  645.                      Field descriptions:
  646.                      -------------------
  647.                      Lvl .... The Access Level assigned  to this  entry.  May
  648.                               be any  character from the following sets: 0-9,
  649.                               A-Z, or a-z.   NOTE: "0"  is the  highest level
  650.                               and "z" is the lowest.
  651.  
  652.                      xx:xx .. The Call  Time Limit.   This  field is optional
  653.                               and is enclosed within  [...].   If omitted, it
  654.                               defaults to approximately 24 hours.
  655.  
  656.                      n ...... The  Daily  Call  Limit.   This field is a sub-
  657.                               field within the [...]  of the  Call Time Limit
  658.                               field.  It cannot be specified without the Call
  659.                               Time  Limit  being  specified  also.   Example:
  660.                               [1:30,2] would  grant two calls per day of 1:30
  661.                               duration each.
  662.  
  663.                      hh:mm .. The Daily Time Limit.  This field is a sub-
  664.                               field within the [...]  of the  Call Time Limit
  665.                               field.  It cannot be specified without the Call
  666.                               Time  Limit  and  the  Daily  Call  Limit being
  667.                               specified also.   Example:  [1:00,5,2:00] would
  668.                               grant five calls per day, each of up to 1 hour
  669.                               each, but a maximum of 2 hours per day total
  670.                               usage.
  671.  
  672.                      pwd .... The Password.   As said above, the password may
  673.                               be from 1-20 characters  in length  and must be
  674.                               unique.    If  this  line  is a class entry the
  675.                               "pwd" field should contain  the  word  CLASS in
  676.                               capital letters.
  677.  
  678.                      auth ... The Authorizations  given to  this entry.  They
  679.                               come from the following list:
  680.  
  681.                                    UP : Upload authorized.
  682.                                    DN : Download authorized.
  683.                                    PR : Private mail authorized.
  684.                                    SY : Sysop priveledges authorized.
  685.                                    CH : Manual     directory     change    is
  686.                                         authorized   (in   absence   of   the
  687.                                         GTDIR.BBS file).
  688.                                    SH : Shell to DOS is authorized.
  689.                                    DR : Use of DOORS is authorized.
  690.                                    MS : Allows message reading.
  691.                                    FR : Allows file request/attach when using
  692.                                         the netmail programs.
  693.  
  694.                               These  authorizations  are  listed seperated by
  695.                               commas,  following   the  "pwd"   field.    See
  696.                               examples below.   The CH authorization is a "do
  697.                               nothing" authorization in  most  cases, because
  698.                               most systems  use a  GTDIR.BBS file.   On these
  699.                               systems the CH option may be  used as  a way to
  700.                               grant no authorization, because a total lack of
  701.  
  702.                                                13
  703.  
  704.  
  705.  
  706.                               authorization yields  the default authorization
  707.                               set: DN,UP,PR,MS.
  708.  
  709.                      1st-Name Last-Name Phone-Number
  710.                               These  three  fields  are  present  when  it is
  711.                               desired   to   allow   the   caller  "callback"
  712.                               priveledges.   In effect,  if the caller's name
  713.                               matches the name listed  here and  he gives the
  714.                               correct password, the system will offer to call
  715.                               him at the listed number.  This allows the host
  716.                               to assume the cost of the phone charges for the
  717.                               session.  The caller must be prepared to accept
  718.                               the call,  that is  his modem must be in "auto-
  719.                               answer" mode.   Send  "ATS0=1|"  to  most Hayes
  720.                               type modems  to set  auto-answer mode.  The "|"
  721.                               represents a "carriage return".  conditions are
  722.                               met GT  will return the call within 15 seconds,
  723.                               and will retry 3 times before giving-up hope of
  724.                               establishing   the   connection.     NOTE:  the
  725.                               password assigned  here for  the callback, must
  726.                               not  be  the  same  as  the  caller's  personal
  727.                               password  --  the  callback  password  MUST  be
  728.                               unique.
  729.  
  730.                 NOTE:
  731.                      It is possible to append a single character to the level
  732.                      indicator.  Thus "A1" would  be  a  valid  level.   This
  733.                      extra character  is used  to identify  a custom bulletin
  734.                      file for this caller.  This extra character is optional,
  735.                      but if  present MUST BE a character that is legal within
  736.                      a file name.  Read about BULLET files below.
  737.  
  738.                 Examples:
  739.                      A  [2:00] MASTER  SY
  740.                      B1 [1:00] FRIEND  DN,PR
  741.                      C  [1:30] JOGGER  DN,UP,PR,DR MARY ADAMS 1-213-555-1234
  742.                      A  [2:00,10,4:00] CLASS SY
  743.  
  744.                      In version 12.10  of  GT  POWER,  personalized passwords
  745.                      were  introduced.    When  a  caller  gets  his personal
  746.                      password it is stored in the  GTMAIL.CTL file,  with the
  747.                      other user  information.   The access  level assigned to
  748.                      the password  used  by  the  caller  on  the  first call
  749.                      (before a  personal password  was assigned)  will be the
  750.                      access level  assigned to  the caller  until changed via
  751.                      the GTCTL  program.  To provide a time limit, daily call
  752.                      limit, and bullet #, a  cross  reference  of  the access
  753.                      level stored  in the users record in GTMAIL.CTL file and
  754.                      the GTPASSWD.BBS file is required.  This is accomplished
  755.                      by placing CLASS cards for each access level your system
  756.                      uses into the GTPASSWD.BBS  file.    The  format  of the
  757.                      CLASS  card  is  the  same  as  a normal password entry,
  758.                      except the word CLASS must appear  in uppercase letters.
  759.                      In addition, the CLASS entries cannot be used to provide
  760.                      callbacks, normal password entries must be  provided for
  761.                      that purpose.  Here are some example CLASS entries:
  762.  
  763.                                                14
  764.  
  765.  
  766.  
  767.                 Examples:
  768.                      A1  [2:00,5,3:00]  CLASS  DN,UP,PR,DR,SH,MS
  769.                      B3  [1:30,2,2:00]  CLASS  DN,PR,MS
  770.                      K2  [:45,1,:45]    CLASS  DN,UP,PR,DR,MS
  771.  
  772.                      The first  CLASS entry  establishes a  class for callers
  773.                      with an 'A' access level, grants them 2 hours of session
  774.                      time, and a daily call limit of 5 calls, 3 hours of time
  775.                      per day, and gives  them  the  authorizations: Download,
  776.                      Upload, Private  mail, use DOORS, Shell to DOS, and read
  777.                      messages.  The other  entries grant  lesser time amounts
  778.                      to  the  'B'  and  'K'  classes.  The 'B' class is given
  779.                      Download,    Private    mail,    and    read    messages
  780.                      authorizations.    The  'K'  class  is  given  Download,
  781.                      Upload,  Private  mail,  use  DOORS,  and  read messages
  782.                      authorizations.    Note:  if  you neglect to setup CLASS
  783.                      entries then once your callers have  been assigned their
  784.                      own  personal  passwords,  this is automatically done by
  785.                      GT, then they will  have unlimited  time access  to your
  786.                      system, the default authorizations, and they will not be
  787.                      given a bullet #.
  788.  
  789.                +-----------------------------------------------------------+
  790.                |                                                           |
  791.                |      Remember to give callers the MS authorization        |
  792.                |      so they can "read messages".  And setup a CLASS      |
  793.                |      entry for each different access level in use.        |
  794.                |                                                           |
  795.                +-----------------------------------------------------------+
  796.  
  797.      GTBULLET.BBS    This file  is  displayed  for  the  caller  after he/she
  798.                      completes logon.   It  is useful to leave notes here for
  799.                      expected callers.
  800.  
  801.      BULLETx.BBS     The "x" may be any character that can be a legal part of
  802.                      a  filename.    This  character must match the character
  803.                      which is found after the level indicator in the password
  804.                      file, to  enable custom  bulletin files  to be displayed
  805.                      for callers.  For example: if a caller's level was "BZ",
  806.                      then  the   program  would   search  for  a  file  named
  807.                      BULLETZ.BBS to display whenever  the caller  logged onto
  808.                      the program.
  809.  
  810.                 NOTE:
  811.                      Custom bulletin  files are OPTIONAL.  If you do not wish
  812.                      to use them, simply use single letters for  access level
  813.                      indicators.
  814.  
  815.      GTMENU.BBS      This file is displayed for callers as the main menu.  It
  816.                      may be suppressed by a caller by selecting X)pert mode.
  817.  
  818.      GTHELP.BBS      This file is displayed for the caller if he/she requests
  819.                      help with the main menu.
  820.  
  821.  
  822.  
  823.  
  824.                                                15
  825.  
  826.  
  827.  
  828.      GTBYE.BBS       This file  is displayed  for the caller when he/she logs
  829.                      off, i.e. selects the  G)oodbye  command  from  the main
  830.                      menu.
  831.  
  832.      GTUSER.BBS      This  file  is  created  whenever  a call comes into the
  833.                      system.  It will  contain the  access level  and name of
  834.                      the current  caller, or  if no  call is in progress, the
  835.                      previous caller to the system.   The file  contains just
  836.                      this 1 line of text.  The exact format is:
  837.  
  838.      Lvl 1st-Name Last-Name auth baud-rate ANSI-opt last-on limit event time
  839.  
  840.                      The line  is free  format with spaces delimiting fields.
  841.                      The "auth" field will  contain the  authorizations given
  842.                      this caller  from the  GTPASSWD.BBS file  when he logged
  843.                      onto the system.  The "baud-rate"  field will  be one of
  844.                      the  following  numbers:  300,  1200,  2400,  9600.  The
  845.                      "ABSI-opt" field will  contain  "NOANSI"  if  the caller
  846.                      doesn't want  ANSI graphics,  or "ANSI"  if he does want
  847.                      the graphics.  The "last-on" field contains the date the
  848.                      user last called the system.  The "limit" field contains
  849.                      the remaining time the caller has  left for  the current
  850.                      call.    The  "event"  field contains the time remaining
  851.                      until the next event is  scheduled.    The  "time" field
  852.                      contains the  current time  in "xx:xx" format.  The time
  853.                      remaining  fields  are  integer  showing  time  left  in
  854.                      minutes.
  855.  
  856.                      The  purpose  of  this  information  is to supply needed
  857.                      control information to external programs that run either
  858.                      in the Shell to DOS or DOOR environment.
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.                                                16
  886.  
  887.  
  888.  
  889.      GTDIR.BBS       This  file  contains  a  list of directories that may be
  890.                      accessed by callers.   There are  two types  of lines in
  891.                      this file: the actual directory lines and comment lines.
  892.                      The comment lines are  displayed to  the caller  when he
  893.                      asks to see the list of directories.  The list displayed
  894.                      will  contain  only  those  directories  the  caller  is
  895.                      authorized to access.  The formats:
  896.  
  897.                 Comment Lines:
  898.                      Contain a  blank in the 1st column, the remainder of the
  899.                      line is displayed for the caller.
  900.  
  901.                 Directory Lines:
  902.                      Column 1 - access Level.  The minimum  level required to
  903.                      access the  directory.   If this  column contains an "="
  904.                      then the actual line  is shifted  to the  right 1 column
  905.                      and  the  "="  acts  to  reserve  the  directory for the
  906.                      indicated access level  - which  would now  be in column
  907.                      2.  (See example.)
  908.  
  909.                      One or  more blank  columns follows  the level, then the
  910.                      complete DOS name of the directory,  including all drive
  911.                      and PATH information.  One or more blank columns follows
  912.                      the directory name, then a description  of the directory
  913.                      is given.
  914.  
  915.                 Examples:
  916.                        This is a comment.  (Since column 1 is blank)
  917.                      A   C:\DOS\TEST    The description goes here.
  918.                      =B  C:\LOTUS\DATA  This is for "B" level callers only.
  919.                      C   A:\            The description again goes here.
  920.  
  921.                      This example  shows three  directories, one  with an "A"
  922.                      access level, one with  a "C"  access level.   These are
  923.                      the  minimum  levels  that  callers   must have to "see"
  924.                      these directories.    The  "=B"  directory  may  only be
  925.                      accessed by a caller with the "B" access level.
  926.  
  927.                 NOTE:
  928.                      When host  mode is  started, the  then default directory
  929.                      will be made available to all callers, regardless of the
  930.                      contents  of  GTDIR.BBS.    So  it  is advised that this
  931.                      directory require the least security and that it  be the
  932.                      1st entry in the GTDIR.BBS file.
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.                                                17
  947.  
  948.  
  949.  
  950.      GTDDIR.BBS      This file  controls access  to the  GT DOOR system.  Its
  951.                      function is much like GTDIR.BBS is for file directories.
  952.                      It serves  as a  way to  add security to doors, document
  953.                      them and pass parameters to them.   Each  door must have
  954.                      an entry  in this  file, there  are no  comment lines in
  955.                      this file.  Each line  in  this  file  follows  the this
  956.                      syntax:
  957.  
  958.                Lvl ([comment_here_with_no_spaces]) (Prompt message here:)
  959.  
  960.                      The ()  indicate which  fields are optional and need not
  961.                      be included in the file.
  962.  
  963.                      As with  the  GTDIR.BBS  file,  the  "Lvl"  controls the
  964.                      minimum  access  level  required  to open the door.  The
  965.                      [comment] is optional, but must be enclosed within [...]
  966.                      if  it  appears  and  no  blanks  are allowed within the
  967.                      comment field.   If  a parameter  must be  passed to the
  968.                      DOOR, then the optional prompt field must be added.  The
  969.                      answer given to this prompt by the caller will be passed
  970.                      to the DOOR as command line argument %3.
  971.  
  972.                      Examples:
  973.                          B  [this-is-door-1]
  974.                          Z  [this-is-door-2]  Enter filename:
  975.                          S  [this-is-door-3]
  976.  
  977.                      In the  example above,  the 2nd door has a prompt listed
  978.                      that indicates that this  door  requires  a  filename be
  979.                      passed.   This could  be for example to implement an ARC
  980.                      view  type  door,  where  the  name  of  the  ARC  to be
  981.                      processed  might  need  to  be  supplied.   The caller's
  982.                      response will be passed as command  line argument  %3 to
  983.                      the GTDOOR2.BAT file in this case.
  984.  
  985.                +------------------------------------------------------------+
  986.                |                                                            |
  987.                |     Please note, the order of the lines in this file       |
  988.                |     must be 1st door on 1st line, 2nd door on 2nd line,    |
  989.                |     etc.  The lines must be in 1, 2, 3... order.           |
  990.                |                                                            |
  991.                +------------------------------------------------------------+
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.                                                18
  1008.  
  1009.  
  1010.  
  1011.      GTMDIR.BBS      This file  controls the  multiple message  bases that GT
  1012.                      can support.  The format of this file is the same as the
  1013.                      format for  the GTDIR.BBS  file, except  that you have 1
  1014.                      additional option for column 1, you  may place  a '*' in
  1015.                      column 1  of an  line in this file and then that message
  1016.                      area will become a  'by application  only' message base.
  1017.                      The caller  applies for entrance by trying to select the
  1018.                      message area via the  A)rea  change  command.    GT will
  1019.                      inform the caller that application has been accepted and
  1020.                      the Sysop must approve.  The  users name  will be placed
  1021.                      into  the  GTMAIL.CTL  file  associated with the message
  1022.                      base, but the BAN bit will  be set,  the Sysop  must use
  1023.                      GTCTL to  reset the  BAN bit  so that  the caller can be
  1024.                      admitted.
  1025.  
  1026.                      When  setting  up,  the  Sysop  should  insure  that all
  1027.                      sub-directories listed  in GTMDIR.BBS exist, but GT will
  1028.                      automatically provide all the control files  and message
  1029.                      directories, as needed.
  1030.  
  1031.                      All message  areas must have an entry in this file.  The
  1032.                      main default message area  must be  open to  all callers
  1033.                      and  must  use  the  same  pathname  as the message base
  1034.                      pathname in GT's  configuration  file.    The GTMDIR.BBS
  1035.                      file must  be located  with the other .BBS files in GT's
  1036.                      home directory.
  1037.  
  1038.           +--------------------------------------------------------------+
  1039.           |                                                              |
  1040.           |    The PATH name portion of the lines in the GTMDIR.BBS      |
  1041.           |    file may be prefixed with either a  ^  and/or a  ~ .      |
  1042.           |                                                              |
  1043.           |    The  ^  designates a message area that can support        |
  1044.           |    public messages only.   The  ~  designates a message      |
  1045.           |    area that is used as a netmail area(see netmail docs).    |
  1046.           |                                                              |
  1047.           +--------------------------------------------------------------+
  1048.  
  1049.                      Examples:
  1050.  
  1051.                      Z   ^C:\GTBBS\OPEN       Public Message Base
  1052.                      E    C:\GTBBS\GENERAL    General Message Base
  1053.                      F    C:\GTBBS\SPECIAL    Special Message Base
  1054.                      Z   ~C:\GTBBS\PUBLIC     Public Netmail Area
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.                                                19
  1069.  
  1070.  
  1071.  
  1072.      GTDOORS.BBS     This file is displayed  for the  caller when  he selects
  1073.                      the O)pen DOORS option from the main menu.  It is a pure
  1074.                      text file, which should  contain your  DOOR menu.   Each
  1075.                      DOOR is assigned a number, 1-99, and should be listed on
  1076.                      this menu by the number needed to select the door.
  1077.  
  1078.      GTDOORn.BAT     These are the DOOR  files themselves.   These  are batch
  1079.                      files,  much  like  the  Shell  to  DOS  batch file, but
  1080.                      instead of executing  another  copy  of  COMMAND.COM, it
  1081.                      executes your  DOOR program.   The mechanism of the DOOR
  1082.                      is actually the CTTY  commands at  the start  and end of
  1083.                      the file.   The  CTTY redirects  the console  to the COM
  1084.                      port at the start of the  DOOR  file,  and  back  to the
  1085.                      console at the end.  Sample DOOR files are included with
  1086.                      the package.  Here is a short example:
  1087.  
  1088.                      %1 COM%2
  1089.                      EDLIN %3
  1090.                      %1 CON
  1091.  
  1092.                      The %1 will become "CTTY"  or  "REM",  and  the  %2 will
  1093.                      become the  port number,  thru substitution by DOS.  The
  1094.                      "REM" substitution is used  when the  DOOR is  being run
  1095.                      locally by the Sysop to check it out.  A DOOR that works
  1096.                      in the local mode may  not  work  for  a  remote caller,
  1097.                      because the  DOOR program  may not use the DOS functions
  1098.                      to perform I/O with the console.
  1099.  
  1100.                      Remember that  the 3rd  command line  argument is passed
  1101.                      from  the  GT  host  to the DOOR containing the response
  1102.                      from the  caller to  a prompt  you have  placed into the
  1103.                      GTDDIR.BBS file.   In this case, it would have asked the
  1104.                      caller which file he wanted to edit.
  1105.  
  1106.      ANSWER.BBS      This file contains the  answers supplied  by the callers
  1107.                      to  any   questionaire  that   you  might  have  in  the
  1108.                      QUESTION.BBS file.    The  format  of  this  file  is as
  1109.                      follows:   each answer  given by  a user is written on a
  1110.                      separate line to this file, the  answers are  grouped by
  1111.                      placing the  users name, from logon, onto the first line
  1112.                      of the group, enclosed within << ... >>,  following this
  1113.                      each answer appears on a separate line and each group is
  1114.                      terminated with a line containing a single period.  Here
  1115.                      is an example:
  1116.  
  1117.                          << Paul Meiners >>
  1118.                          9350 Country Creek #30
  1119.                          Houston, TX 77036
  1120.                          713-772-2090
  1121.                          .
  1122.                          << Susie Meiners >>
  1123.                          1245 Sunnyside Dr.
  1124.                          Houston, TX 77081
  1125.                          713-894-3465
  1126.                          .
  1127.  
  1128.  
  1129.                                                20
  1130.  
  1131.  
  1132.  
  1133.                      The example  shown above contains two groups of answers.
  1134.                      As GT accumulates answers  it  will  continue  to append
  1135.                      them to  the end  of this  file.   If this file does not
  1136.                      exist, GT  will  create  it.    The  Sysop  should avoid
  1137.                      editing  this  file,  because  any  attempt to do so may
  1138.                      render GT incapable of adding answers to it.
  1139.  
  1140.      QUESTION.BBS    This file contains the questionaire for  callers to fill
  1141.                      out.  This feature is optional.  The file is in template
  1142.                      format, using the [------]  construct to  indicate where
  1143.                      GT should gather answers to questions.  For example:
  1144.  
  1145.                                          [------------]
  1146.                      Enter Phone Number:
  1147.  
  1148.                      Would direct  GT to collect the phone number, showing GT
  1149.                      where to collect the answer and the maximum width answer
  1150.                      to accept.   Each answer can be up to 80 characters long
  1151.                      and there may be up to 50 questions per questionaire.
  1152.  
  1153.                      After having filled  out  the  questionaire,  the caller
  1154.                      will be  asked if  he wishes his answers to be recorded.
  1155.                      If he indicates in the  negative,  GT  will  discard the
  1156.                      answers.
  1157.  
  1158.                      The questionaire  is optional,  and if the user tries to
  1159.                      fill out a questionaire  that cannot  be found,  GT will
  1160.                      indicate  to  the  caller  that there is no questionaire
  1161.                      currently available.
  1162.  
  1163.      PREQUEST.BBS    This file is displayed for the  caller immediately after
  1164.                      he selects  the Q)uestionaire option from the main menu.
  1165.                      It should explain to the caller the basic purpose of the
  1166.                      questionaire and  allow him  to consider if he wishes to
  1167.                      continue to  fill  out  the  questionaire.   Immediately
  1168.                      after this  file is displayed, the caller will receive a
  1169.                      prompt, asking if he wishes to continue and fill out the
  1170.                      questionaire.
  1171.  
  1172.                      The PREQUEST.BBS file is optional.
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.                                                21
  1191.  
  1192.  
  1193.  
  1194.      PROTOCOL.BBS    This  file  contains  the  protocol  menu  that  will be
  1195.                      displayed  for  the  caller  if  he   initiates  a  file
  1196.                      transfer.    It  is  provided  so  that  the  Sysop  can
  1197.                      customize this menu to his own taste.   It is  pure text
  1198.                      format, except  for the  first line,  which contains the
  1199.                      list of protocols the Sysop wishes  to activate  for his
  1200.                      system.    The  format  of  this  activation  line is as
  1201.                      follows:
  1202.  
  1203.                          ;XYZB1TWKMSG
  1204.  
  1205.                      Where the ";" appears  in column  1 of  the line.   Each
  1206.                      letter activates a specific protocol, as follows:
  1207.  
  1208.                          X ... Xmodem
  1209.                          Y ... Ymodem
  1210.                          Z ... Zmodem
  1211.                          B ... Ymodem Batch
  1212.                          1 ... 1k Telink
  1213.                          T ... Telink
  1214.                          W ... WXmodem
  1215.                          K ... Kermit
  1216.                          M ... MegaLink
  1217.                          S ... SEAlink
  1218.                          G ... Ymodem-G
  1219.  
  1220.                      By omitting  the activation  letter from  this line, the
  1221.                      Sysop  may  disable  the  corresponding  protocol.   For
  1222.                      example:
  1223.  
  1224.                          ;XYZT
  1225.  
  1226.                      Would activate  and allow  on the Xmodem, Ymodem, Zmodem
  1227.                      and Telink protocols.  The other protocols would  not be
  1228.                      allowed.
  1229.  
  1230.                      The PROTOCOL.BBS  file is  optional, if  omitted GT will
  1231.                      display a canned protocol menu.
  1232.  
  1233.      WELCOME.BBS     Each  message  base  may  have  a  welcome  screen.   It
  1234.                      present, it  resides in  the directory  with the message
  1235.                      .CTL files and is displayed for the caller  as he enters
  1236.                      the message  base.   It is in the nature of a conference
  1237.                      welcome screen.  The WELCOME.BBS file is optional.
  1238.  
  1239.      MBULLETx.BBS    Each message base may have bulletins associated with it.
  1240.                      These bulletin  files will  reside in the directory with
  1241.                      the message .CTL files and  will  be  displayed  for the
  1242.                      caller  after  the  WELCOME.BBS file has been displayed.
  1243.                      The bulletin numbers are  coordinated  with  the regular
  1244.                      bulletin numbers  in the  main GT  directory, which come
  1245.                      from  the  bulletin  numbers  on  the   entries  in  the
  1246.                      GTPASSWD.BBS file.
  1247.  
  1248.                      The MBULLETn.BBS files are optional.
  1249.  
  1250.  
  1251.                                                22
  1252.  
  1253.  
  1254.  
  1255.      SYSOP.BBS       This file contains the custom welcome to Chat Mode - the
  1256.                      mode that is entered  when  the  Sysop  answers  a Page.
  1257.                      Normally this  file contains  something like  ", here is
  1258.                      the SYSOP."  It may be  changed to  reflect the  name of
  1259.                      the Sysop,  or whatever.  Using the normal contents, the
  1260.                      caller would see:
  1261.  
  1262.                          Caller Name, here is the SYSOP.
  1263.  
  1264.                      Of course, the actual caller's name will replace "Caller
  1265.                      Name".
  1266.  
  1267.      SCHEDULE.BBS    A new  feature in GT POWER 13.00 is the "scheduler".  It
  1268.                      is code within the GT host  mode which  allows the sysop
  1269.                      to  schedule   external  events.    The  format  of  the
  1270.                      SCHEDULE.BBS file is very simple.  The file  is composed
  1271.                      of lines  that begin with a time or range of times, then
  1272.                      the command to be executed at the specified time.
  1273.  
  1274.                      Examples:
  1275.  
  1276.                      03:00       copy file1 file2
  1277.                      03:30       QUIT 5
  1278.                      04:00-05:00 QUIT 6
  1279.                      06:00       maint
  1280.  
  1281.                      Based on the above example, at 3 a.m.  the GT  host will
  1282.                      copy  file1  to  file2  (any DOS command can be executed
  1283.                      like this).  Then  at 3:30  a.m. the  GT host  will quit
  1284.                      execution and set an ERRORLEVEL of 5, the runstream that
  1285.                      is controlling GT must be  prepared  to  deal  with this
  1286.                      ERRORLEVEL, else  nothing will  be done.   Also the user
  1287.                      must insure that the GT host is restarted.  At  any time
  1288.                      between  4  a.m.  and  5  a.m.  the  GT  host  will quit
  1289.                      execution and an ERRORLEVEL of 6 -- this one is meant to
  1290.                      illustrate a  quit to the netmail function, which should
  1291.                      always be started with a range of times, so that in case
  1292.                      it cannot  start exactly  on the button of 4 a.m. the GT
  1293.                      host will start it, even if it is late starting.   Again
  1294.                      the runstream that is controlling GT must be prepared to
  1295.                      deal with the indicated ERRORLEVEL, 6 in this  case, and
  1296.                      must restart  the GT  host after  5 a.m.  Then at 6 a.m.
  1297.                      the GT host will execute the 'maint' batch  file.  NOTE:
  1298.                      when the  GT host starts a command like this, it is done
  1299.                      via the  SHELL mechanism,  this requires  alot of memory
  1300.                      and  it  is  not  recommended  if  you  are using multi-
  1301.                      tasking software.   The  netmail  documentation includes
  1302.                      examples of how this can be setup.
  1303.  
  1304.                +-----------------------------------------------------------+
  1305.                |                                                           |
  1306.                |                           NOTE                            |
  1307.                |                                                           |
  1308.                |     Five minutes prior to a scheduled event, GT POWER     |
  1309.                |     will cease accepting calls and wait for the event     |
  1310.                |     start time.  Callers who call in the vicinity of      |
  1311.  
  1312.                                                23
  1313.  
  1314.  
  1315.  
  1316.                |     an event will have their time on the system cutback   |
  1317.                |     so that the caller will be off the system before      |
  1318.                |      the event is to start.                                |
  1319.                |                                                           |
  1320.                |                                                           |
  1321.                +-----------------------------------------------------------+
  1322.  
  1323.      FILES.BBS       When you create a directory to contain files, either for
  1324.                      upload  or  download,  you  should  include  within  the
  1325.                      directory a file named FILES.BBS.  It should contain the
  1326.                      descriptions   of   the   files   contained  within  the
  1327.                      directory.  When the caller selects the "F"  option from
  1328.                      the  main  menu,  the  content  of  this  file  will  be
  1329.                      displayed.
  1330.  
  1331.                      The FILES.BBS  that  is  located  in  the  system upload
  1332.                      directory (know  as the  "Default Download  PATH" in the
  1333.                      configuration)  will  be   updated   automatically  with
  1334.                      information supplied by the uploader as follows:
  1335.  
  1336.                      Position     Description
  1337.                      --------     -----------
  1338.                      1-12         Filename
  1339.                      13           Blank
  1340.                      14-16        File size in kilobytes
  1341.                      17           Blank
  1342.                      18-25        Upload date
  1343.                      26           Blank
  1344.                      27-79        File description
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.                                                24
  1374.  
  1375.  
  1376.  
  1377.      Host Mode Control Files and Directories
  1378.      ---------------------------------------
  1379.      During the  operation of  the GT  host mode, two files and one directory
  1380.      will be created automatically, for each message base.  The GTCTL program
  1381.      must be  used to maintain these files, when the need arises.  Here is an
  1382.      overview of the purpose of these files:
  1383.  
  1384.      GTMESSAG.CTL    This  file  contains  the  header  information  for  all
  1385.                      messages maintained by the GT host.  Such information as
  1386.                      sender name, addressee name,  date of  entry and whether
  1387.                      or not the message has been received, are kept here.
  1388.  
  1389.      GTMAIL.CTL      This file may well be misnamed.  It contains information
  1390.                      about the callers to your GT host.  Such as  their name,
  1391.                      where they  are calling from, the last message they have
  1392.                      read, etc.  Also contained in this file are the personal
  1393.                      passwords and access levels of each caller.
  1394.  
  1395.      GTMSGS          This is  a sub-directory  where the text of the messages
  1396.                      is stored.  Each  message is  stored in  a separate file
  1397.                      without the  header information, which is  stored in the
  1398.                      GTMESSAG.CTL file.   The  messages  are  named  with the
  1399.                      message  number  as  the  main filename and extension of
  1400.                      .MSG.
  1401.  
  1402.      These files will be created as necessary by  the GT  host, they  will be
  1403.      created in the directory pointed to by the "Message Base PATH" in the GT
  1404.      configuration, or if that is not  used in  the home  directory and drive
  1405.      from the  environment variable  GTPATH, or if that variable is not used,
  1406.      in the default directory at program  start-up.   The program  GTCTL will
  1407.      perform needed  maintenance of  these files: for example renumbering the
  1408.      messages,  deleting  obsolete  users,  providing  reports  and listings.
  1409.      HOWEVER, do not run GTCTL prior to establishing these files.
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.                                        25
  1435.  
  1436.  
  1437.  
  1438.      Running Host Mode
  1439.      -----------------
  1440.      Once  installed,  host  mode  is  fairly self-explanatory, but here is a
  1441.      quick once over.
  1442.  
  1443.      Host mode is started by pressing "ALT -".   GT  will automatically enter
  1444.      "Half duplex"  mode.  This is so that anything typed on the host console
  1445.      will echo so that it can  be   seen.   Then GT  will send  the host mode
  1446.      Modem  Init  String  to  the    modem  and wait for a call.  While GT is
  1447.      waiting for a call, there are  4 commands  available: [Esc],  which will
  1448.      terminate host mode, carriage return, which allows the Sysop to logon to
  1449.      GT's host mode from the local  console,  [Ctrl-L],  which  turns  on the
  1450.      system printer  for logging,  and [Ctrl-S]  to load  a fresh copy of the
  1451.      schedule from disk.  Note that you must have logging  enabled in  the GT
  1452.      configuration,  via  Alt-I,  the  [Ctrl-L]  command  merely  enables the
  1453.      printer, so that whatever is  logged  will  alos  appear  on  the system
  1454.      printer.    There  also  is  a  command  line  option to turn on the log
  1455.      printer.  If you place "/p" on the GT command line, the  printing of the
  1456.      log will automatically be turned on from the very start of the program.
  1457.  
  1458.      Once  GT  has  answered  an  incoming  call,  there are several commands
  1459.      available to the operator, as follows:
  1460.  
  1461.      +---------------------------------------------------------------------+
  1462.      |                                                                     |
  1463.      |                          SYSOP COMMANDS                             |
  1464.      |                                                                     |
  1465.      |      Ctrl-D     List current schedule on the screen.                |
  1466.      |      Ctrl-L     Toggle log printer on/off.                          |
  1467.      |      Ctrl-N     Raise caller's access level while on-line.          |
  1468.      |      Ctrl-R     Reset time limit, gives caller more time.           |
  1469.      |      Ctrl-S     Load new schedule from disk.                        |
  1470.      |      Ctrl-T     Terminate after current caller disconnects.         |
  1471.      |      Ctrl-X     Abort the caller.                                   |
  1472.      |      Ctrl-Z     Terminate chat mode, after a P)age from caller      |
  1473.      |                                                                     |
  1474.      +---------------------------------------------------------------------+
  1475.  
  1476.  
  1477.      Command Line Usage
  1478.      ------------------
  1479.      When  you  start  GT,  there  are several command line switches that are
  1480.      available to you:
  1481.  
  1482.  
  1483.      name      You may indicate a script file to be executed upon start-up of
  1484.                GT.
  1485.  
  1486.      /D        You may  indicate whether  or not you wish to have GT drop the
  1487.                DTR signal to the modem when GT exits back to DOS.
  1488.  
  1489.      /C        You may indicate whether  you are  connected via  cable to the
  1490.                host computer.
  1491.  
  1492.      /K        You may  initiate the  capture mode from the very start of the
  1493.                program.
  1494.  
  1495.                                        26
  1496.  
  1497.  
  1498.  
  1499.  
  1500.      /P        You may enable logging to the system printer.
  1501.  
  1502.      /1        You may  configure the  port addresses  in use  by your serial
  1503.                port.  The actual port number to be configured, 1-4, is placed
  1504.                after the slash.  The new base address  of the  indicated port
  1505.                is placed  after the  slash number  with an intervening blank.
  1506.                The address must be given with a leading $ sign and be  in hex
  1507.                notation, for example $3F1 would be a valid address.  Refer to
  1508.                your hardware documentation for the correct  address to  use.
  1509.                GT uses  standard addresses  if you  do not override with this
  1510.                option.
  1511.  
  1512.      /S        Use  the  smallest  possible  amount  of  memory  to  run  GT.
  1513.                Normally this  option is  useful for running the GT host mode,
  1514.                it allows the maximum amount of free memory for use  with DOOR
  1515.                programs.
  1516.  
  1517.      /M        Use a medium amount of memory to run GT.  This model is useful
  1518.                when GT is used for a variety of purposes.   It gives  a large
  1519.                capture buffer  and yet  leaves plenty of room to run external
  1520.                programs, such as DSZ and PCKERMIT.
  1521.  
  1522.      /L         Use all  available memory  to run  GT.   This is  the default
  1523.                memory model.  It gives a very large capture buffer, on a 640k
  1524.                computer the  /L option  usually results in more than 400k for
  1525.                the capture buffer.  Also, the /L option is required  to sort,
  1526.                Alt-O,  very  large  phone  directories.    NOTE: no memory is
  1527.                reserved for external programs in this model, so use /M  or /S
  1528.                as the normal setting.
  1529.  
  1530.      /Rn       This option  applies to  the GT  host mode.   It specifies the
  1531.                ring number  upon which  GT will  answer incoming  calls.  For
  1532.                example /R3  would cause  GT to answer on the 3rd ring.  NOTE:
  1533.                that the host mode modem  init  string  must  contain  S0=0 to
  1534.                allow this to work properly.
  1535.  
  1536.      /RB       This option applies to the GT host mode.  It specifies that GT
  1537.                should answer the modem after a "ring back".   To  enable this
  1538.                to work properly, the /R2 command line option must be used and
  1539.                the host mode modem  init  string  must  contain  S0=0.   Once
  1540.                installed properly  this option  makes the GT host mode answer
  1541.                the phone on the  2nd ring  after a  gap of  between 9  and 30
  1542.                seconds.   If the  gap between rings is less than 9 seconds or
  1543.                greater than 30 seconds, GT will not answer  the phone.   This
  1544.                allows the  use of an answering machine on the same phone line
  1545.                as the computer.  The answering  machine should  be programmed
  1546.                to answer on a later ring, the 5th for example.
  1547.  
  1548.      +----------------------------------------------------------------------+
  1549.      |                                                                      |
  1550.      |     This listing of command line switches came from the main GT      |
  1551.      |     documentation file.  Please refer to that document for sample    |
  1552.      |     usage of these switches.                                         |
  1553.      |                                                                      |
  1554.      +----------------------------------------------------------------------+
  1555.  
  1556.                                        27
  1557.  
  1558.  
  1559.  
  1560.      Host Mode LOG
  1561.      -------------
  1562.      A few  sections above,  I suggested  that logging  be TRUE,  while GT is
  1563.      running in Host Mode.  Here is why: during Host Mode operations, GT will
  1564.      log all of the  calls received,  who called  and the  password used.   A
  1565.      record will  also be  kept of  who tranfered each file, how long it took
  1566.      and the efficiency of the transfer.   I  consider the  gathering of this
  1567.      information to be critical to the operation of a GT Host.
  1568.  
  1569.      In fact,  this information  is so  valuable, that  Mr. James R. Davis of
  1570.      Houston has written a companion  program  called  GTLOG,  which  does an
  1571.      excellent  job  of  analyzing  the  GT.LOG  file.  I recommend the GTLOG
  1572.      program and, if it is useful, I suggest that one let James know.
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.                                        28
  1618.  
  1619.  
  1620.  
  1621.      The Shell to DOS
  1622.      ----------------
  1623.      The DOS Shell allows remote callers  to operate  your computer remotely.
  1624.      When the  "Shell to  DOS" option  of the  main menu is selected, GT will
  1625.      shell to the file  GTDOOR.BAT.   This file  will set  up for  the remote
  1626.      shell by executing the proper CTTY command, then execute a secondary DOS
  1627.      shell and let the user into the system.  He will have the console, so be
  1628.      cautious!   The caller will be instructed to issue the "EXIT" command to
  1629.      return to GT.
  1630.  
  1631.      While the DOS Shell is active and the  caller is  out in  the system, GT
  1632.      will not be idle.  GT will act as a watchdog.  If the caller should hang
  1633.      up while the DOS shell is active, GT  will force  the system  to re-boot
  1634.      and will  drop the DTR signal to the modem.  If commands to start GT are
  1635.      placed in the AUTOEXEC.BAT file and a script is used to start Host Mode,
  1636.      then GT  will automatically  recycle.   The script command to start Host
  1637.      Mode is simply HOST.
  1638.  
  1639.      NOTE:
  1640.           For this process  to  work  correctly,  the  COMMAND.COM  file must
  1641.           reside in  a directory pointed to by the PATH environment variable.
  1642.           In order for this to work  on a  normal drive  C: hard  disk, "C:\"
  1643.           should be added to the PATH variable.  For example:
  1644.  
  1645.                       PATH=c:\dos;c:\lotus;c:\
  1646.  
  1647.           This  will  ensure  that  the  COMMAND.COM  file can be located for
  1648.           execution by the GTDOOR.BAT runstream.
  1649.  
  1650.           A problem with the DOS Shell has been reported when using DOS 2.xx.
  1651.           This is  caused by  the fact  that DOS  2.xx does  not support full
  1652.           pathnames when requesting the execution  of  a  program.    To work
  1653.           around this  problem, if  you have  DOS 2.xx,  you should place the
  1654.           GTDOOR.BAT  file  in  some  other  directory  besides  the  GT home
  1655.           directory.   If GT  finds GTDOOR.BAT in his home directory, then GT
  1656.           will issue an EXEC function with  full pathname,  otherwise GT will
  1657.           not specify  any pathname  and will  rely on  the DOS PATH command.
  1658.           The directory where GTDOOR.BAT is stored must be pointed to  by the
  1659.           DOS PATH command in this case.
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.                                           29
  1679.  
  1680.  
  1681.  
  1682.      Using the Shell to DOS
  1683.      ----------------------
  1684.      What can  one do,  once one  is running  DOS remote  via a CTTY command?
  1685.      Well, one can't use any of the Fn keys or the other special keys  on the
  1686.      IBM  key-board!    One  can't  run any program that does direct hardware
  1687.      control of the screen or keyboard.  All  screen and  keyboard input must
  1688.      be done  through DOS.   Well, then what can one do?  One can run any DOS
  1689.      command; for example COPY, ERASE, DIR  and others,  including EDLIN, all
  1690.      work properly.   In fact, any program that uses the standard DOS handles
  1691.      for input and output to the console will work.  But one still won't have
  1692.      F1 -  F10 or the other special keys.  Well, that's not quite so...if the
  1693.      Host Mode computer is setup so that the ANSI.SYS device driver is loaded
  1694.      via  the  CONFIG.SYS  file.    Just  put  a  line like this one into the
  1695.      CONFIG.SYS file:
  1696.  
  1697.                                DEVICE=ANSI.SYS
  1698.  
  1699.      Naturally, ANSI.SYS must be located in  the root  directory of  the boot
  1700.      disk.   After that  has been  done, re-boot the computer.  ANSI.SYS will
  1701.      then be loaded.  One can  now re-map  the keyboard  so that  the special
  1702.      keys are  mapped to  Ctrl keys instead.  This will enable programs to be
  1703.      run that use these keys; for example EDLIN uses the  arrow keys  as well
  1704.      as several function keys.
  1705.  
  1706.      How does  one re-map keys with ANSI.SYS?  The following sequence must be
  1707.      issued for each key that needs to be re-mapped:
  1708.  
  1709.                             ESC [ ##;##;##;...p
  1710.  
  1711.      The (...) indicate that the sequence may be repeated as needed, but each
  1712.      sequence only  re-maps one  key.   Once a  file containing these mapping
  1713.      commands has been created, they can be sent  to ANSI.SYS  by TYPEing the
  1714.      file.   The "##"  in the sequence above indicate the ASCII codes for the
  1715.      keys to be mapped.  For example, let's map F3  to the  Ctrl-D key.   The
  1716.      ASCII codes  for F3 are 0,61 and the ASCII code for Ctrl-D is 4.  (Note:
  1717.      the special keys have two codes - the  first is  always 0.   These codes
  1718.      are really called extended ASCII codes.)  Therefore, the proper ANSI.SYS
  1719.      command to re-map F3 to Ctrl-D would be:
  1720.  
  1721.                             ESC [ 4;0;61p
  1722.  
  1723.      Note:
  1724.           Blanks  are  included  for  readability  only,  the  "p"   must  be
  1725.           lowercase,  and  the  symbol  ESC  stands for the escape character,
  1726.           CHR$(27).
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.                                           30
  1740.  
  1741.  
  1742.  
  1743.      APPENDIX
  1744.      --------
  1745.      Here is a handy list of extended ASCII codes:
  1746.  
  1747.                    Key       Codes                 Key            Codes
  1748.                    ---       -----                 ---            -----
  1749.                    F1        0,59                  Right Arrow    0,77
  1750.                    F2        0,60                  Left Arrow     0,75
  1751.                    F3        0,61                  Up Arrow       0,72
  1752.                    F4        0,62                  Down Arrow     0,80
  1753.                    F5        0,63                  Home           0,71
  1754.                    F6        0,64                  End            0,79
  1755.                    F7        0,65                  PgUp           0,73
  1756.                    F8        0,66                  PgDn           0,81
  1757.                    F9        0,67                  Ins            0,82
  1758.                    F10       0,68                  Del            0,83
  1759.  
  1760.  
  1761.  
  1762.      Here are some sample ANSI sequences!
  1763.  
  1764.                           Escape Codes         Meaning to ANSI.SYS
  1765.                           ------------         -------------------
  1766.                            ^[[4;0;61p           F3          -> Ctrl-D
  1767.                            ^[[5;0;62p           F4          -> Ctrl-E
  1768.                            ^[[19;0;77p          Right Arrow -> Ctrl-S
  1769.                            ^[[1;0;75p           Left Arrow  -> Ctrl-A
  1770.  
  1771.      With these kinds of mappings, almost any program should be  able to run,
  1772.      if it  uses the  DOS handles for standard input and output.  This should
  1773.      make the "Shell to DOS" quite useful.
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.                                        31
  1801.  
  1802.  
  1803.  
  1804.  Message #20.   2-26-87 12:36.05
  1805.      From: James Davis
  1806.        To: All
  1807.   Subject: POWER-LOSS-PROTECTED HOST MODE
  1808.  
  1809.             Setting up for Power-Loss-Protected GT Host Mode Operation
  1810.  
  1811.      It  is quite easy to prepare a set of files that will allow you to bring
  1812.      GT  POWER  up into  what I should like  to  call a  Power-Loss-Protected
  1813.      Host Mode of operation.  First, however, a few concepts:
  1814.  
  1815.      Whenever power is first applied to your system, (or re-applied following
  1816.      a  blackout),  the  system will boot your DOS into memory and  that,  in
  1817.      turn, will look for two files; CONFIG.SYS and AUTOEXEC.BAT.  Finding the
  1818.      CONFIG.SYS,  the  DOS  will  tailor your environment  according  to  its
  1819.      contents  (such  as  setting  a new maximum number  of  files  and  file
  1820.      buffers).   Finding  the  AUTOEXEC.BAT  file will cause  the  system  to
  1821.      immediately execute the set of DOS instructions found therein.
  1822.  
  1823.      GT  POWER   may be  caused  to run in  an unattended   Host mode  either
  1824.      through  GT  commands entered at the keyboard (Alt-dash) or via  script.
  1825.      The GT command to do so in a GT script is simply: HOST.
  1826.  
  1827.      GT  POWER   has  a built-in 'Watchdog'  function  that causes  a  system
  1828.      reset (the equivalent of a re-boot) under the following condition: It is
  1829.      in  Host  mode  and a user has invoked the Shell  to  DOS  function  and
  1830.      Carrier Detect is lost while in the DOS Shell (door).
  1831.  
  1832.      Given the above, to set up the system for Power-Loss_Protected Host mode
  1833.      operation of GT POWER you must construct the following files:
  1834.           Your normal AUTOEXEC.BAT
  1835.           A copy of the normal AUTOEXEC.BAT called AUTOEXEC.OLD
  1836.           A new file called AUTOEXEC.GT
  1837.           A new file called HOST.BAT
  1838.           A GT script file called HOST.SCR
  1839.  
  1840.      The  first  four of these files belong in your root directory while  the
  1841.      script  file   should be  placed  in  the same directory   as  GT  POWER
  1842.      resides.   When you want to enter the Power-Loss-Protected Host mode  of
  1843.      GT POWER  you  need  only type  the single word HOST from any directory.
  1844.      The  result  will be the invoking of the HOST.BAT file which,  in  turn,
  1845.      copies the AUTOEXEC.GT file on top of your normal AUTOEXEC.BAT (so  that
  1846.      if  a  re-boot  occurs  it will get control),  it then  sets  a  default
  1847.      directory so that your private directories are not accessible to callers
  1848.      into  the system,  and  then  it  invokes  GT POWER specifying the  name
  1849.      and location of the HOST.SCR script file you created.   Thus, GT will be
  1850.      given control and placed into Host mode.   Upon normal  termination,  GT
  1851.      exits  to  DOS which returns to the unexecuted portion of  the  HOST.BAT
  1852.      file  and  continues  by doing a copy of AUTOEXEC.OLD (a  copy  of  your
  1853.      original AUTOEXEC.BAT) on top of the current one and ending.
  1854.  
  1855.      In  the event of a power failure while in Host mode,  or loss of carrier
  1856.      while  in  the DOS Shell,  the AUTOEXEC.BAT file that is in  place  will
  1857.      reset  to  the  default (safe) drive and reinvoke the Host  mode  of  GT
  1858.      POWER.
  1859.  
  1860.  
  1861.                                        32
  1862.  
  1863.  
  1864.  
  1865.  Message #21.   2-26-87 12:36.58
  1866.      From: James Davis
  1867.        To: All
  1868.   Subject: POWER-LOSS-PROTECTED MODE CONT
  1869.  
  1870.             Sample files for Power-Loss-Protected Host Mode operation
  1871.  
  1872.      Original AUTOEXEC.BAT (and AUTOEXEC.OLD!!):
  1873.  
  1874.           Echo off
  1875.           Ver
  1876.           Prompt $p$g
  1877.           Path = C:\DOS;C:\;C:\COMM;C:\FREEWARE
  1878.           Set GTPATH=C:\COMM
  1879.  
  1880.      AUTOEXEC.GT:
  1881.  
  1882.           Echo off
  1883.           Ver
  1884.           Prompt $p$g
  1885.           Path = C:\DOS;C:\;C:\COMM;C:\FREEWARE
  1886.           Set GTPATH=C:\COMM
  1887.           D:
  1888.           CD \EMPTY
  1889.           GT1200 C:\COMM\HOST.SCR
  1890.           C:
  1891.           CD \
  1892.           COPY AUTOEXEC.OLD AUTOEXEC.BAT
  1893.  
  1894.      HOST.BAT:
  1895.  
  1896.           Echo off
  1897.           Copy C:\AUTOEXEC.GT C:\AUTOEXEC.BAT
  1898.           CLS
  1899.           D:
  1900.           CD \EMPTY
  1901.           GT1200 C:\COMM\HOST.SCR
  1902.           C:
  1903.           CD \
  1904.           COPY AUTOEXEC.OLD AUTOEXEC.BAT
  1905.           CLS
  1906.  
  1907.      HOST.SCR:
  1908.  
  1909.           HOST
  1910.  
  1911.  
  1912.      That's all there is to it.
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.                                        33
  1923.  
  1924.  
  1925.  
  1926.  Message #29.  03-03-87 21:45.00
  1927.      From: James Davis
  1928.        To: All
  1929.   Subject: GT under DESQview(tm)
  1930.  
  1931.                    Running GT POWER under DESQview(tm)
  1932.  
  1933.  GT  POWER runs quite well as a task under the DESQview(tm) multi-tasking
  1934.  system.   There are a few things that should be kept in mind when  doing
  1935.  so, however.
  1936.  
  1937.  For example,  in order to prevent any 'bleeding' of your GT screens into
  1938.  another task,  you must set the BIOS parameter of GT to TRUE.  Note that
  1939.  the  effect  of  doing so totally eliminates any use  of  direct  screen
  1940.  writes  by GT and that it will substantially increase the time it  takes
  1941.  GT to 'open' a window.   It does not affect any other function of GT nor
  1942.  does it affect any other aspect of GT performance.
  1943.  
  1944.  Also,  you  will need to provide enough memory for GT to run while under
  1945.  DESQview(tm).   If you do not have to consider KERMIT or  ZMODEM then
  1946.  you  can  run  GT  in a partition of as  small  as  130K  of  RAM.
  1947.  Experimentation  has shown that in order to support ZMODEM and the other
  1948.  protocols  mentioned  above you will need to set the partition  size  to
  1949.  280K.
  1950.  
  1951.  GT,  as  it requires rapid access to the serial port you are  using  for
  1952.  communications  must  be  the first task loaded in DESQview(tm).  And, a
  1953.  performance option of DESQview(tm) (set by invoking the SETUP program)
  1954.  must be set showing the existence of High Speed Communications.   Other
  1955.  options that need to be set include the fact that GT is NOT SWAPPABLE to
  1956.  disk  and  time  slices somewhere between 3 and 6 ticks  in  length  per
  1957.  partition.
  1958.  
  1959.  Finally, for security, assign the name of an empty directory as the data
  1960.  path name (in the Change Program screen for DESQviews(tm) copy of GT) and
  1961.  prefix  the GT command with the path to the GT resident  directory.   It
  1962.  has been my experience  that  DESQview(tm)  does  not  pass  the   entire
  1963.  environment from DOS to the tasks.   Thus, a program like GTLOG or GTCTL
  1964.  cannot  find  the required directory (GTPATH= from the environment  does
  1965.  not  get passed to them) but this way will insure that GT can  find  its
  1966.  own  directory and log file.   This assumes,  of course,  that you  have
  1967.  properly  set  up the directory in your DOS path (which is  passed  thru
  1968.  DESQview(tm) to its tasks).
  1969.  
  1970.  (tm) DESQview is the trademark of QuarterDeck Office Systems.
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.                                        34
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.                                        35
  2045.